<a>
  <foo></<selection>fo<caret>o</selection>>
</a>